﻿#ifndef _PAGEFILE_H_
#define _PAGEFILE_H_

#ifdef _WIN32
#pragma comment(lib,"sqlite3.lib")
#endif

#include <map>
#include <list>
#include <string>
//#include "../public/guid.h"
#include "sqlite/include/sqlite3.h"

class CPagefile
{
private:
	CPagefile();
	
public:
	~CPagefile();
	static CPagefile& GetInstance();

	int Start();
	int Stop();
    bool GetNewDeviceInfo(const std::string hardwareid, std::string &deviceid, std::string &devicekey);
    int GetSendSnByHardid(const std::string deviceid);
private:
	sqlite3* pagefile_db;
};
#endif
